package com.xydtech.workflow.service.impl;

import com.xydtech.workflow.domain.WflSteppage;
import com.xydtech.workflow.mapper.WflSteppageMapper;
import com.xydtech.workflow.service.IWflSteppageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 流程节点页面配置Service业务层处理
 *
 * @author JHON
 * @date 2021-06-02
 */
@Service
public class WflSteppageServiceImpl implements IWflSteppageService {
    @Autowired
    private WflSteppageMapper wflSteppageMapper;

    /**
     * 查询流程节点页面配置列表
     *
     * @param wflSteppage 流程节点页面配置
     * @return 流程节点页面配置
     */
    @Override
    public List<WflSteppage> selectWflSteppageList(WflSteppage wflSteppage) {
        return wflSteppageMapper.selectWflSteppageList(wflSteppage);
    }


    /**
     * 新增流程节点页面配置
     *
     * @param list 流程节点页面配置
     * @return 结果
     */
    @Override
    public int insertWflSteppage(List<WflSteppage> list) {

        return wflSteppageMapper.insertWflSteppage(list);
    }

    /**
     * 修改流程节点页面配置
     *
     * @param list 流程节点页面配置
     * @return 结果
     */
    @Override
    public int batchUpdateWflSteppageOrderNum(List<WflSteppage> list) {

        return wflSteppageMapper.batchUpdateWflSteppageOrderNum(list);
    }

    /**
     * 修改流程节点页面配置
     *
     * @param wflSteppage 流程节点页面配置
     * @return 结果
     */
    @Override
    public int updateWflSteppage(WflSteppage wflSteppage) {

        return wflSteppageMapper.updateWflSteppage(wflSteppage);
    }

    /**
     * 删除流程节点页面配置信息
     *
     * @param wflSteppage 流程节点页面配置
     * @return 结果
     */
    @Override
    public int deleteWflSteppageById(WflSteppage wflSteppage) {
        return wflSteppageMapper.deleteWflSteppageById(wflSteppage);
    }
}
